import request from '@/utils/request'

// 广告推荐数据接口
export function guanggaogetdata(params) {
    return request({
      url: '/admin/ad/list',
      method: 'get',
      params
    })
  }
  // 广告推荐单行删除
  export function guanggaodelete(data) {
    return request({
      url: 'admin/ad/delete',
      method: 'post',
      data
    })
  }
  // 广告推荐添加
  export function guanggaoadd(data) {
    return request({
      url: '/admin/ad/create',
      method: 'post',
      data
    })
  }
  // 广告推荐编辑
  export function guanggaoedit(data) {
    return request({
      url: '/admin/ad/update',
      method: 'post',
      data
    })
  }